package com.qingfeng.medical.biz.auth.domain.dto;

import com.qingfeng.medical.base.domain.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author 清风学Java
 */
@Data
@Builder
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "用户保存实体")
public class SysUserSaveDTO extends BaseEntity {
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户名")
	@NotBlank(message = "用户名不能为空")
	private String username;

	@ApiModelProperty(value = "密码")
	@NotBlank(message = "密码不能为空")
	private String password;

	@ApiModelProperty(value = "姓名")
	@NotBlank(message = "姓名不能为空")
	private String name;

	@ApiModelProperty(value = "手机")
	@NotBlank(message = "手机号不能为空")
	private String phone;

	@ApiModelProperty(value = "头像地址")
	private String headUrl;
}

